package mulMan.gui.view;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import mulMan.domain.AudioFile;

public class AddAudioFileView extends AudioFileView{
	
	private static final long serialVersionUID = -8083483641423766011L;
	
	private JButton buttonAdd;

	public JButton getButtonAdd() {
		return buttonAdd;
	}
	public void setButtonAdd(JButton buttonAdd) {
		this.buttonAdd = buttonAdd;
	}
	
	

	public AddAudioFileView(AudioFile audioFile){
		super(audioFile);
	}
	
	public void initView() {
		super.initView();
		
		setTitle("Add file window");
	    
		buttonAdd = new JButton();
		buttonAdd.setText("Save");
		buttonAdd.setBounds(15, 130, 100, 20);
	    getPanel().add(buttonAdd);
	}
	
	public void addAddAudioFileListener(ActionListener aafl) {
		buttonAdd.addActionListener(aafl);
    }

}
